StoredLearningSession.MoveToPrevious Method

Moves to the previous activity in the session. For a session that represents an active attempt, this is determined through sequencing rules of the package. In other cases, it is determined by an in order traversal of the activity tree and navigation rules as defined in the package manifest are not enforced.

Parent Type: StoredLearningSession

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public override void MoveToPrevious ()

Exceptions
Exception type Condition
InvalidOperationException

Thrown if there is no current activity in the session or if the session is not in a state that allows moving to the previous activity.

SequencingException

Thrown if a new activity could not be identified for delivery.

Remarks

For a SessionView of Execute, this method requires a current activity in the session.

In the process of navigation, the current activity may be exited before the navigation command is able to complete. If the navigation command then throws a SequencingException, the state of the session is undefined. The current activity may have changed or become inactive during this process.